IsJSONType

Returns True or False to indicate if an expression is a JSONObject or JSONArray type.

Syntax

IsJSONType(Value)

Arguments

Argument Description
Value Expression to evaluate.

Return value

Value Description
True Expression is a JSONObject or JSONArray.
False Expression is not a JSONObject or JSONArray.

Example

' Returns True

jsonType = JSONNewArray()

boolVal = IsJSONType(jsonType)

PrintLn("Should be True: " & boolVal)

' Returns False

boolVal = IsJSONType("[1,2,3,4]")

PrintLn("Should be False: " & boolVal)